//
//  StoreViewController.swift
//  FoodAdd
//
//  Created by 千峰1 on 16/11/3.
//  Copyright © 2016年 FoodAddGroup. All rights reserved.
//

import UIKit
import Alamofire

class StoreViewController: FAViewController {

    
    //MARK: - 属性
    var tableView: UITableView!
    
    
    
    override func viewDidLoad() {
        super.viewDidLoad()

        self.title = "店铺"
        
        self.getNetData()
        self.creatUI()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

//MARK: - 界面相关
extension StoreViewController {
    
    override func creatUI() {
        
        self.tableView = UITableView.init(frame: CGRectMake(0, 0, Screen_W, Screen_H), style: .Plain)
        
        self.view.addSubview(self.tableView)
        
        
        
    }
}


//MARK: - 获取数据
extension StoreViewController {
    
    func getNetData(){
        let str = ["act":"goods_cms_special","op":"cms_special","token":"749a036dc06ae8b3a120848995a9f306","client":"android","curpage":"1"]
        Alamofire.request(.GET, Url_Store, parameters: str, encoding: .URL, headers: nil).responseJSON(options: NSJSONReadingOptions.MutableContainers) { (data) in
            print(data)
        }
    }
}



























